<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;			
$aid = JRequest::getVar('aid');
$active = $this->intro_items[0];
?>
<h2 class="title">Products</h2>
<p>&nbsp;</p>
<div class="left-block">
    <ul class="list-services">
       	<?php 
       		$i=1; 
       		foreach($this->intro_items as $item){
				if($item->id == $aid) $active = $item;
		       	$link = JRoute::_(ContentHelperRoute::getCategoryRoute($item->catid, 0, $item->id));
       	?>
       			<li class="active"><a href="<?php echo $link;?>"><?php echo $i++;?>. <?php echo $item->title;?></a></li>
       	<?php }?>
    </ul>
</div>
<div class="right-block">
    <div class="content">
        <?php echo $active->text;?>
    </div>
</div>
